<?php
	require_once 'database.php';
	$id = $_GET["id"];
	$code = $_GET["code"];
	$sql = "UPDATE forumuser SET
			isactive = 1
			WHERE Id = $id AND ActivationCode = '$code'";
	echo $sql;
	mysql_query($sql);
	mysql_close();
	
	echo "<h2>Congrates.. you are activated.</h2>";
?>